# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(harmony_libuv_idle)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include)

file(GLOB_RECURSE HARMONY_CPP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)

add_library(entry SHARED hello.cpp
    ${HARMONY_CPP_FILES}
)

find_library(
    # Sets the name of the path variable.
    libuv-lib
    # Specifies the name of the NDK library that
    # you want CMake to locate.
    uv
)

target_link_libraries(entry PUBLIC ${libuv-lib} libace_napi.z.so)